<?php 
include_once('connection/connection.php');
include('config.php');
//session_start();
//ob_start();
include('header.php');
include('menu.php');
$formId=substr($_SESSION['formID'],8);
$sql_last="select * from tbl_dtls_q1_last where loc_id=$formId";
$query_last=mysql_query($sql_last);
$row_last=mysql_fetch_array($query_last);

/*$existing_means=explode(',',$row_last['existing_means']);
$cnt1=count($existing_means);

$existing_report=explode(',',$row_last['existing_report']);
$cnt2=count($existing_report);

$institutional=explode(',',$row_last['institutional']);
$cnt3=count($institutional);

$financial=explode(',',$row_last['financial']);
$cnt4=count($financial);

$operational=explode(',',$row_last['operational']);
$cnt5=count($operational);*/

?>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link href="css/style_question.css" type="text/css" rel="stylesheet" />
<script language="javascript" type="text/javascript" src="js/validate1.js"></script>
<title><?php echo $sc;?>&nbsp;Schemes</title>
</head>
<!--<body onLoad="enable_text1(false)">-->
<body>
<?php
if(isset($_POST['submit']))
{
		$fclick = true;
		$loc_id = $_SESSION['loc_id'];
		$current_status=$_POST['current_status'];
		$actual_water_supply=$_POST['actual_water_supply'];
		$frequency_supply=$_POST['frequency_supply'];
		$duration_of_supply=$_POST['duration_of_supply'];
		if($_POST['type_of_disinfection']!='Other')
		{
			$type_of_disinfection=$_POST['type_of_disinfection'];
		}
		else
		{
			$type_of_disinfection=$_POST['type_other'];
		}
		$disinfection_frequecy=$_POST['disinfection_frequecy'];
		$Quantity_of_chemical=$_POST['Quantity_of_chemical'];
		$manpower_o_m=$_POST['manpower_o_m'];
		$tech_emp=$_POST['tech_emp'];
		$exist_water_supplied=$_POST['exist_water_supplied'];
		$exist_water_supplied=implode(',',$exist_water_supplied);
		$water_connection_domestic=$_POST['water_connection_domestic'];
		$water_connection_nondomestic=$_POST['water_connection_nondomestic'];
		$water_connection_industrial=$_POST['water_connection_industrial'];
		$domestic=$_POST['domestic'];
		$non_domestic=$_POST['non_domestic'];
		$industrial=$_POST['industrial'];
		$wbr_09_10=$_POST['wbr_09_10'];
		$wbr_08_09=$_POST['wbr_08_09'];
		$wbr_07_08=$_POST['wbr_07_08'];
		$rg_09_10=$_POST['rg_09_10'];
		$rg_08_09=$_POST['rg_08_09'];
		$rg_07_08=$_POST['rg_07_08'];
		$mpc_fy_09_10=$_POST['mpc_fy_09_10'];
		$mpc_fy_08_09=$_POST['mpc_fy_08_09'];
		$mpc_fy_07_08=$_POST['mpc_fy_07_08'];
		$mcmr_fy_09_10=$_POST['mcmr_fy_09_10'];
		$mcmr_fy_08_09=$_POST['mcmr_fy_08_09'];
		$mcmr_fy_07_08=$_POST['mcmr_fy_07_08'];
		$mcpr_fy_09_10=$_POST['mcpr_fy_09_10'];
		$mcpr_fy_08_09=$_POST['mcpr_fy_08_09'];
		$mcpr_fy_07_08=$_POST['mcpr_fy_07_08'];
		$pc_fy_09_10=$_POST['pc_fy_09_10'];
		$pc_fy_08_09=$_POST['pc_fy_08_09'];
		$pc_fy_07_08=$_POST['pc_fy_07_08'];
		$cc_fy_09_10=$_POST['cc_fy_09_10'];
		$cc_fy_08_09=$_POST['cc_fy_08_09'];
		$cc_fy_07_08=$_POST['cc_fy_07_08'];
		$prev_main_mech_place=$_POST['prev_main_mech_place'];
		$exist_report_sys=$_POST['exist_report_sys'];
		$report_other=$_POST['report_other'];
		$exist_report_sys=implode(',',$exist_report_sys); 
		$exist_report_sys=$exist_report_sys . $report_other;
		/*if($_POST['exist_report_sys']!='Other')
		{
			$exist_report_sys=$_POST['exist_report_sys'];
		}
		else
		{
			$exist_report_sys=$_POST['report_other'];
		}*/
		$time_taken=$_POST['time_taken'];
		$complaint_1=$_POST['complaint_1']; 
		$complaint_2=$_POST['complaint_2'];
		$complaint_3=$_POST['complaint_3'];
		$complaint_4=$_POST['complaint_4'];
		$complaint_5=$_POST['complaint_5'];
		$institutional=$_POST['institutional'];
		$institutional_other=$_POST['institutional_other'];
		$institutional=implode(',',$institutional); 
		$institutional=$institutional . $institutional_other;
		$financial=$_POST['financial'];
		$financial_other=$_POST['financial_other'];
		$financial=implode(',',$financial); 
		$financial=$financial . $financial_other;
		$operational=$_POST['operational'];
		$operational_other=$_POST['operational_other'];
		$operational=implode(',',$operational); 
		$operational=$operational . $operational_other;
		
		//$qr1="INSERT INTO tbl_dtls_q1_last (loc_id, current_status, water_supply, freq_supply, duration_supply, type_disinfection, freq, quant_chemical, manpwr_total, tech_emp, existing_means, domestic_no, nondomestic_no, industrial_no, domestic_system, nondomestic_system, industrial_system, wbs_9_10, wbs_8_9, wbs_7_8, rg_9_10, rg_8_9, rg_7_8, mpc_9_10, mpc_8_9, mpc_7_8, mc_mr_9_10, mc_mr_8_9, mc_mr_7_8, mc_pr_9_10, mc_pr_8_9, mc_pr_7_8, pc_9_10, pc_8_9, pc_7_8, cc_9_10, cc_8_9,  cc_7_8, preventive_place, existing_report, time_taken, complaint_1, complaint_2, complaint_3, complaint_4, complaint_5, institutional, financial, operational) Values ('$loc_id','$current_status', '$actual_water_supply', '$frequency_supply', '$duration_of_supply', '$type_of_disinfection', '$disinfection_frequecy', '$Quantity_of_chemical', '$manpower_o_m', '$tech_emp', '$exist_water_supplied', '$water_connection_domestic', '$water_connection_nondomestic', '$water_connection_industrial', '$domestic', '$non_domestic', '$industrial', '$wbr_09_10', '$wbr_08_09', '$wbr_07_08', '$rg_09_10', '$rg_08_09', '$rg_07_08', '$mpc_fy_09_10', '$mpc_fy_08_09', '$mpc_fy_07_08', '$mcmr_fy_09_10', '$mcmr_fy_08_09', '$mcmr_fy_07_08', '$mcpr_fy_09_10', '$mcpr_fy_08_09', '$mcpr_fy_07_08', '$pc_fy_09_10', '$pc_fy_08_09', '$pc_fy_07_08', '$cc_fy_09_10', '$cc_fy_08_09', '$cc_fy_07_08', '$prev_main_mech_place', '$exist_report_sys', '$time_taken', '$complaint_1', '$complaint_2', '$complaint_3', '$complaint_4', '$complaint_5', '$institutional', '$financial', '$operational')";
		
		//$qr1="UPDATE tbl_dtls_q1_last SET current_status='$current_status', water_supply='$actual_water_supply', freq_supply='$frequency_supply', duration_supply='$duration_of_supply', type_disinfection='$type_of_disinfection', freq='$disinfection_frequecy', quant_chemical='$Quantity_of_chemical', manpwr_total='$manpower_o_m', tech_emp='$tech_emp', existing_means='$exist_water_supplied', domestic_no='$water_connection_domestic', nondomestic_no='$water_connection_nondomestic', industrial_no='$water_connection_industrial', domestic_system='$domestic', nondomestic_system='$non_domestic', industrial_system='$industrial', wbs_9_10='$wbr_09_10', wbs_8_9='$wbr_08_09', wbs_7_8='$wbr_07_08', rg_9_10='$rg_09_10', rg_8_9='$rg_08_09', rg_7_8='$rg_07_08', mpc_9_10='$mpc_fy_09_10', mpc_8_9='$mpc_fy_08_09', mpc_7_8='$mpc_fy_07_08',mc_mr_9_10='$mcmr_fy_09_10', mc_mr_8_9='$mcmr_fy_08_09', mc_mr_7_8='$mcmr_fy_07_08', mc_pr_9_10='$mcpr_fy_09_10', mc_pr_8_9='$mcpr_fy_08_09', mc_pr_7_8='$mcpr_fy_07_08', pc_9_10='$pc_fy_09_10', pc_8_9='$pc_fy_08_09', pc_7_8='$pc_fy_07_08', cc_9_10='$cc_fy_09_10', cc_8_9='$cc_fy_08_09', cc_7_8='$cc_fy_07_08', preventive_place='$prev_main_mech_place', existing_report='$exist_report_sys', time_taken='$time_taken', institutional='$institutional', financial='$financial', operational='$operational' WHERE loc_id=$formId";
		$qr1="UPDATE tbl_dtls_q1_last SET current_status='$current_status', water_supply='$actual_water_supply', freq_supply='$frequency_supply', duration_supply='$duration_of_supply', type_disinfection='$type_of_disinfection', freq='$disinfection_frequecy', quant_chemical='$Quantity_of_chemical', manpwr_total='$manpower_o_m', tech_emp='$tech_emp', existing_means='$exist_water_supplied', domestic_no='$water_connection_domestic', nondomestic_no='$water_connection_nondomestic', industrial_no='$water_connection_industrial', domestic_system='$domestic', nondomestic_system='$non_domestic', industrial_system='$industrial', wbs_9_10='$wbr_09_10', wbs_8_9='$wbr_08_09', wbs_7_8='$wbr_07_08', rg_9_10='$rg_09_10', rg_8_9='$rg_08_09', rg_7_8='$rg_07_08', mpc_9_10='$mpc_fy_09_10', mpc_8_9='$mpc_fy_08_09', mpc_7_8='$mpc_fy_07_08',mc_mr_9_10='$mcmr_fy_09_10', mc_mr_8_9='$mcmr_fy_08_09', mc_mr_7_8='$mcmr_fy_07_08', mc_pr_9_10='$mcpr_fy_09_10', mc_pr_8_9='$mcpr_fy_08_09', mc_pr_7_8='$mcpr_fy_07_08', pc_9_10='$pc_fy_09_10', pc_8_9='$pc_fy_08_09', pc_7_8='$pc_fy_07_08', cc_9_10='$cc_fy_09_10', cc_8_9='$cc_fy_08_09', cc_7_8='$cc_fy_07_08', preventive_place='$prev_main_mech_place', existing_report='$exist_report_sys', time_taken='$time_taken', complaint_1='$complaint_1', complaint_2='$complaint_2', complaint_3='$complaint_3', complaint_4='$complaint_4', complaint_5='$complaint_5', institutional='$institutional', financial='$financial', operational='$operational' WHERE loc_id=$formId";
		//echo $qr1;
		$result1=mysql_query($qr1);
			if($result1)
			{
				$relocatePage=true;
				//header('Location: critical_form2.php');
				//echo "success 2";
			    }
			     else 
			      {
				$errorIns.="Error inserting last table <br>";
			       }
				   
			if($errorIns==0) 
			{
				header('Location: editquestionnaire1_4.php');
			}
			else 
			{
				echo $errorIns;exit;
			}		
}
else
{
	$fclick = false;
	$flag=0;
}
?>		
<div align="center">
<form action="" method="post" enctype="multipart/form-data" name="questionnaire1_3" id="questionnaire1_3" onSubmit="return validate3()">
	<table border="0" width="750" id="table1" cellspacing="0" cellpadding="0">
		<tr>
			<td height="30">
			<p align="center">
			<font face="Verdana" style="font-size: 10pt; font-weight: 700" color="#000000">
			<?php echo $sc;?>&nbsp;Schemes</font></td>
		</tr>
		
		<tr>
			<td align="center"><font face="Arial" style="font-size: 8.5pt" color="#000000">Page 3</font></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td background="images/title.gif" height="22"><font color="#ffffff">&nbsp;
			</font><span style="font-weight: 700">
			<font face="Arial" style="font-size: 9pt" color="#ffffff">
			Operational Aspects</font></span></td>
		</tr>
		<tr>
			<td>
			<table width="746" height="933" border="0" cellpadding="0" cellspacing="1" bgcolor="#EEEEEE" id="table9">
				<tr>
					<td colspan="4">
					<span style="font-size: 4pt">&nbsp;</span></td>
				</tr>
				<tr>
					<td width="268" height="26">
					&nbsp;
					<font style="font-size: 9pt" face="Verdana" color="#000000">
					1. Current Status of Schemes </font></td>
					<td colspan="3">
						<font style="font-size: 9pt" face="Verdana" color="#000000">
						<input type="radio" name="current_status" id="radio" value="operation"<?php echo($row_last['current_status']=='operation')?'checked':'';?> onClick="setEnable33(this.value)" checked="checked">
						Operational&nbsp;
				  <input type="radio" name="current_status" id="current_status" value="defunct"<?php echo($row_last['current_status']=='defunct')?'checked':'';?> onClick="setReadOnly33(this.value)">
				  Defunct&nbsp;</font></td>
				</tr>
				
				
				<tr>
					<td width="268" height="25">
					<font style="font-size: 9pt" face="Verdana" color="#000000">&nbsp; 
					2. Actual Water Supplied (KLD)</font></td>
					<td colspan="3">
									<font style="font-size: 9pt" face="Verdana" color="#000000">
				  <input type="text" name="actual_water_supply" id="actual_water_supply" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['water_supply'];?>"></font></td>
				</tr>
				<tr>
					<td width="268" height="26">
					<font style="font-size: 9pt" face="Verdana" color="#000000">&nbsp; 
					3. Frequency of Supply</font></td>
					<td colspan="3">
						<select size="1" name="frequency_supply" id="frequency_supply" class="txt" >
						<option selected value="0">Select Frequency</option>
						<?php 
						foreach($frequency as $key=>$val)
						{
							if($row_last['freq_supply']==$val)
							{
		   						echo "<option value=$val selected>$val</option>";
							}
							else
							{
								echo "<option value=$val>$val</option>";
							}
								
						}
						?>
						</select></td>
				</tr>
				<tr>
					<td width="268" height="27">
					<font style="font-size: 9pt" face="Verdana" color="#000000">&nbsp; 
					4. Duration of supply (hrs/ day)</font></td>
				  <td colspan="3"><font style="font-size: 9pt" face="Verdana" color="#000000">
				    <input type="text" name="duration_of_supply" id="duration_of_supply" size="18" class="txt5" value="<?php echo $row_last['duration_supply'];?>" onBlur="float(this)">
				  </font></td>
				</tr>
				<tr>
					<td width="268" height="25">
					<font face="Verdana" style="font-size: 9pt" color="#000000">&nbsp; 
					5. Disinfection Process</font></td>
					<td colspan="3">&nbsp;</td>
				</tr>
				<tr>
					<td width="268" height="28">&nbsp;
					<font face="Verdana" style="font-size: 9pt" color="#000000">
					I) Type of disinfection </font></td>
					<td colspan="3">
						<select size="1" name="type_of_disinfection" id="type_of_disinfection" class="txt" onChange="enable_text23(true)">
						<option selected value="0">Select</option>
						<?php 
						/*foreach($type_disinf as $key=>$val)
						{
							if($row_last['type_disinfection']==$val)
							{
		   						echo "<option value=$val selected>$val</option>";
							}
							else
							{
								echo "<option value=$val>$val</option>";
							}
								
						}*/
						foreach($type_disinf as $key=>$val)
						{
							$val1=$row_last['type_disinfection'];
						if($val1=='Not-Provided' || $val1=='Clorine' || $val1=='Bleaching-Powder')
						{
							if($val1==$val)
							{
		   						echo "<option value=$val selected>$val</option>";
							}
							else
							{
								echo "<option value='$val'>$val</option>";
							}
						}
						if($val1!='Not-Provided' && $val1!='Clorine' && $val1!='Bleaching-Powder')
						{
							if($val1!=$val)
							{
		   						echo "<option value='Other' selected>$val</option>";
							}
							else
							{
								echo "<option value='$val'>$val</option>";
							}
						}
						}
						?>
				  </select><font style="font-size: 8pt" face="Verdana" color="#000000">If Other then specify</font><input type="text" name="type_other" id="type_other"  value="<?php if($row_last['type_disinfection']!='Not-Provided' && $row_last['type_disinfection']!='Clorine' && $row_last['type_disinfection']!='Bleaching-Powder'){ echo $row_last['type_disinfection']; } else echo ''; ?>" style="font-size: 8pt; font-family: Verdana; border-style: solid; border-width: 1px"></td>
				</tr>
				<tr>
					<td width="268" height="28">
					<font style="font-size: 9pt" face="Verdana" color="#000000">&nbsp;II) Frequency </font></td>
					<td colspan="3">
						<select size="1" name="disinfection_frequecy" id="disinfection_frequecy" class="txt" >
						<option selected value="0">Select</option>
						<?php 
						foreach($freq as $key=>$val)
						{
							if($row_last['freq']==$val)
							{
		   						echo "<option value=$val selected>$val</option>";
							}
							else
							{
								echo "<option value=$val>$val</option>";
							}
								
						}
						?>
				  </select></td>
				</tr>
				<tr>
					<td width="268" height="26">
					<font style="font-size: 9pt" face="Verdana" color="#000000">&nbsp; 
					III) Quantity of chemical Used / KL</font></td>
					<td colspan="3" height="26">
					<font style="font-size: 9pt" face="Verdana" color="#000000">
						<input type="text" name="Quantity_of_chemical" id="Quantity_of_chemical" size="18" class="txt5" value="<?php echo $row_last['quant_chemical'];?>" onBlur="float(this)"> 
	kg</font></td>
				</tr>
				<tr>
					<td width="268" height="23">
					&nbsp;
					<font style="font-size: 9pt" face="Verdana" color="#000000">
					6. Total Manpower displayed in O &amp; M </font></td>
					<td colspan="3">
	<font style="font-size: 9pt" face="Verdana" color="#000000">
	<input type="text" name="manpower_o_m" id="manpower_o_m" size="18" class="txt5" value="<?php echo $row_last['manpwr_total'];?>"></font></td>
				</tr>
				<tr>
					<td width="268" height="23">
					&nbsp;<font style="font-size: 9pt" face="Verdana" color="#000000">
					&nbsp;&nbsp;&nbsp;&nbsp;Total Technical personnel(Nos.)</font></td>
					<td colspan="3">
	<font style="font-size: 9pt" face="Verdana" color="#000000">
	<input type="text" name="tech_emp" id="tech_emp" size="18" class="txt5" value="<?php echo $row_last['tech_emp'];?>"></font></td>
				</tr>
				<tr>
					<td width="268" height="41">
					&nbsp;
					<font style="font-size: 9pt" face="Verdana" color="#000000">
					7. Existing means to quantify water &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;supplied</font></td>
					<td colspan="3"><font style="font-size: 9pt" face="Arial" color="#000000">
					<?php
						$exist_means=explode(',',$row_last['existing_means']);
						//$a_means_exit=array('bulk_meters','pr_gauges','water_meter','measure_quantity','none');
						//$exist_means_other=array_diff($exist_means,$a_means_exit);
						//foreach($exist_means_other as $key=>$val_exist_means)
						//$means_other=substr($val_exist_means, 5);
						//$count=count($exist_report);
						//echo $exist_report[1];
						//for($i=0;$i<=$count;$i++)
						//{
						?>
					<input type="checkbox" name="exist_water_supplied[]" id="exist_water_supplied[]" value="bulk_meters"<?php echo  (in_array('bulk_meters',$exist_means)?'checked':'');?>> Bulk meters&nbsp;
					<input type="checkbox" name="exist_water_supplied[]" id="exist_water_supplied[]" value="pr_gauges"<?php echo (in_array('pr_gauges',$exist_means)?'checked':'');?>> Pr. Gauges&nbsp;
				  <input type="checkbox" name="exist_water_supplied[]" id="exist_water_supplied[]" value="water_meter"<?php echo (in_array('water_meter',$exist_means)?'checked':'');?>> Water meters at consumer end</font></td>
				</tr>
				<tr>
					<td width="268" height="31">&nbsp;</td>
					<td colspan="3">
						<font style="font-size: 9pt" face="Arial" color="#000000">
				  <input type="checkbox" name="exist_water_supplied[]" id="exist_water_supplied[]" value="measure_quantity"<?php echo  (in_array('measure_quantity',$exist_means)?'checked':'');?>>By measuring quantity Produced&nbsp;&nbsp;
				  <input type="checkbox" name="exist_water_supplied[]" id="exist_water_supplied[]" value="none"<?php echo (in_array('none',$exist_means)?'checked':'');?>>&nbsp;None</font></td>
				</tr>
				<tr>
					<td width="268" valign="top">
					&nbsp;<font style="font-size: 9pt" face="Verdana" color="#000000"> 
					8. Water Connections</font></td>
					<td colspan="3">
					<table border="0" width="100%" cellspacing="0" cellpadding="0">
						<tr>
							<td bgcolor="#CCCCCC" align="center" height="27" width="173">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
							Type</font></td>
							<td width="257" height="27" align="center" bgcolor="#CCCCCC">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
							Nos.</font></td>
						</tr>
						<tr align="center">
							<td width="173" height="23">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
							Domestic</font></td>
							<td align="center">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
									<input type="text" name="water_connection_domestic" id="water_connection_domestic" size="18" class="txt5" onBlur="numeric(this)" value="<?php echo $row_last['domestic_no'];?>"></font></td>
						</tr>
						<tr align="center">
							<td width="173" height="24">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
							Non Domestic</font></td>
							<td align="center">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
									<input type="text" name="water_connection_nondomestic" id="water_connection_nondomestic" size="18" class="txt5" onBlur="numeric(this)" value="<?php echo $row_last['nondomestic_no'];?>"></font></td>
						</tr>
						<tr align="center">
							<td width="173" height="25">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
							Industrial</font></td>
							<td align="center">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
									<input type="text" name="water_connection_industrial" id="water_connection_industrial" size="18" class="txt5" onBlur="numeric(this)" value="<?php echo $row_last['industrial_no'];?>"></font></td>
						</tr>
				  </table>					</td>
				</tr>
				<tr>
					<td width="268" height="110" valign="top">
					&nbsp;<font color="#000000" face="Verdana">&nbsp; </font><font style="font-size: 9pt" face="Verdana" color="#000000">9. Water Billing System</font></td>
					<td colspan="3">
					<table border="0" width="100%" cellspacing="0" cellpadding="0">
						<tr>
							<td bgcolor="#CCCCCC" height="27" width="186">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
							&nbsp;&nbsp;Type</font></td>
							<td width="278" height="27" align="center" bgcolor="#CCCCCC">&nbsp;</td>
						</tr>
						<tr>
							<td width="186" height="30">
							<input type="checkbox" name="dom" id="dom" value="ON" onClick="chkenable(this.checked)"><font style="font-size: 9pt" face="Verdana" color="#000000">
							Domestic</font></td>
							<td>
							<font style="font-size: 9pt" face="Verdana" color="#000000">
									<input type="radio" name="domestic" id="domestic" value="metered"<?php echo($row_last['domestic_system']=='metered')?'checked':'';?>>Metered&nbsp;
									<input type="radio" name="domestic" id="domestic" value="flat rate"<?php echo($row_last['domestic_system']=='flat rate')?'checked':'';?>>Flat Rate&nbsp;</font></td>
						</tr>
						<tr>
							<td width="186" height="29">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
							<input type="checkbox" name="non_dom" id="non_dom" value="ON" onClick="chkenable1(this.checked)">&nbsp;Non Domestic</font></td>
							<td>
							<font style="font-size: 9pt" face="Verdana" color="#000000">
									<input type="radio" name="non_domestic"id="non_domestic" value="metered"<?php echo($row_last['nondomestic_system']=='metered')?'checked':'';?>>Metered&nbsp;
									<input type="radio" name="non_domestic"id="non_domestic" value="flat rate"<?php echo($row_last['nondomestic_system']=='flat rate')?'checked':'';?>>Flat Rate&nbsp;</font></td>
						</tr>
						<tr>
							<td width="186" height="26">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
							<input type="checkbox" name="indus" id="indus" value="ON" onClick="chkenable2(this.checked)">&nbsp;Industrial</font></td>
							<td>
							<font style="font-size: 9pt" face="Verdana" color="#000000">
							<input type="radio" name="industrial"id="industrial" value="metered"<?php echo($row_last['industrial_system']=='metered')?'checked':'';?>>Metered&nbsp;
							<input type="radio" name="industrial"id="industrial" value="flat rate"<?php echo($row_last['industrial_system']=='flat rate')?'checked':'';?>>Flat Rate&nbsp;</font></td>
						</tr>
				  </table>
				  </td>
				</tr>
				<tr>
					<td width="268" height="51" valign="top">
					&nbsp;<font style="font-size: 9pt" face="Verdana" color="#000000"> 10. Water Bills Raised (in <img src="images/26rup1.jpg" width="10"> Lakhs)</font></td>
					<td colspan="3">
					<table border="0" width="100%" cellspacing="0" cellpadding="0">
						<tr>
							<td bgcolor="#CCCCCC" align="center" height="21" width="154">
							<font face="Verdana" style="font-size: 9pt" color="#000000">
							2009-10</font></td>
							<td width="155" height="21" align="center" bgcolor="#CCCCCC">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
							2008-09</font></td>
							<td width="155" height="21" align="center" bgcolor="#CCCCCC">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
							2007-08</font></td>
						</tr>
						<tr>
							<td width="154" height="26" align="center">
									<input type="text" name="wbr_09_10" id="wbr_09_10" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['wbs_9_10'];?>"></td>
							<td align="center">
									<input type="text" name="wbr_08_09" id="wbr_08_09" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['wbs_8_9'];?>"></td>
							<td align="center">
									<input type="text" name="wbr_07_08" id="wbr_07_08" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['wbs_7_8'];?>"></td>
						</tr>
					</table></td>
				</tr>
				<tr>
					<td width="268" height="21" valign="top">
					&nbsp;<font style="font-size: 9pt" face="Verdana" color="#000000"> 11. Revenue Generated (in <img src="images/26rup1.jpg" width="10"> Lakhs)</font></td>
					<td height="21" colspan="3">
					<table border="0" width="100%" cellspacing="0" cellpadding="0">
						<tr>
							<td bgcolor="#CCCCCC" align="center" height="21" width="154">
							<font face="Verdana" style="font-size: 9pt" color="#000000">
							2009-10</font></td>
							<td width="155" height="21" align="center" bgcolor="#CCCCCC">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
							2008-09</font></td>
							<td width="155" height="21" align="center" bgcolor="#CCCCCC">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
							2007-08</font></td>
						</tr>
						<tr>
							<td width="154" height="26" align="center">
							<input type="text" name="rg_09_10" id="rg_09_10" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['rg_9_10'];?>"></td>
						  <td align="center">
						  <input type="text" name="rg_08_09" id="rg_08_09" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['rg_8_9'];?>"></td>
							<td align="center">
							<input type="text" name="rg_07_08" id="rg_07_08" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['rg_7_8'];?>"></td>
						</tr>
					</table></td>
				</tr>
				<tr>
					<td width="268" height="20">
					<font style="font-size: 9pt" face="Verdana" color="#000000">&nbsp; 12. Annual Operations Maintenance Cost &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(in <img src="images/26rup1.jpg" width="10"> Lakhs)</font></td>
					<td width="153" bgcolor="#CCCCCC" height="20" align="center">
					<font style="font-size: 9pt" face="Verdana" color="#000000">
				  FY 2009-10</font></td>
					<td width="154" bgcolor="#CCCCCC" height="20" align="center">
					<font style="font-size: 9pt" face="Verdana" color="#000000">
				  FY 2008-09</font></td>
					<td width="166" bgcolor="#CCCCCC" height="20" align="center">
					<font style="font-size: 9pt" face="Verdana" color="#000000">
				  FY 2007-08</font></td>
				</tr>
				<tr>
					<td width="268" height="26">
					<font face="Verdana" style="font-size: 9pt" color="#000000"> 
					 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Man Power Cost</font></td>
				  <td width="153" align="center">
				  <input type="text" name="mpc_fy_09_10" id="mpc_fy_09_10" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['mpc_9_10'];?>"></td>
					<td width="154" align="center">
				  <input type="text" name="mpc_fy_08_09" id="mpc_fy_08_09" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['mpc_8_9'];?>"></td>
				    <td width="166" align="center">
				  <input type="text" name="mpc_fy_07_08" id="mpc_fy_07_08" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['mpc_7_8'];?>"></td>
				</tr>
				<tr>
					<td width="268" height="26"><font style="font-size: 9pt" face="Verdana" color="#000000"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Material Cost - Machinery Repairs</font></td>
					<td width="153" align="center">
				  <input type="text" name="mcmr_fy_09_10" id="mcmr_fy_09_10" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['mc_mr_9_10'];?>"></td>
					<td width="154" align="center">
				  <input type="text" name="mcmr_fy_08_09" id="mcmr_fy_08_09" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['mc_mr_8_9'];?>"></td>
				    <td width="166" align="center">
				  <input type="text" name="mcmr_fy_07_08" id="mcmr_fy_07_08" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['mc_mr_7_8'];?>"></td>
				</tr>
				<tr>
					<td width="268" height="26">
					<font style="font-size: 9pt" face="Verdana" color="#000000"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Material Cost - Pipe Repairs</font></td>
				  <td width="153" align="center">
				  <input type="text" name="mcpr_fy_09_10" id="mcpr_fy_09_10" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['mc_pr_9_10'];?>"></td>
				  <td width="154" align="center">
				  <input type="text" name="mcpr_fy_08_09" id="mcpr_fy_08_09" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['mc_pr_8_9'];?>"></td>
				  <td width="166" align="center">
				  <input type="text" name="mcpr_fy_07_08" id="mcpr_fy_07_08" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['mc_pr_7_8'];?>"></td>
				</tr>
				<tr>
					<td width="268" height="25">
					<font style="font-size: 9pt" face="Verdana" color="#000000"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Power Cost</font></td>
					<td width="153" align="center">
				  <input type="text" name="pc_fy_09_10" id="pc_fy_09_10" size="18"  class="txt5" onBlur="float(this)" value="<?php echo $row_last['pc_9_10'];?>"></td>
				  <td width="154" align="center">
				  <input type="text" name="pc_fy_08_09" id="pc_fy_08_09" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['pc_8_9'];?>"></td>
				  <td width="166" align="center">
				  <input type="text" name="pc_fy_07_08" id="pc_fy_07_08" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['pc_7_8'];?>"></td>
				</tr>
				<tr>
					<td width="268" height="26">
					<font style="font-size: 9pt" face="Verdana" color="#000000"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Chemicals Cost</font></td>
					<td width="153" align="center">
				  <input type="text" name="cc_fy_09_10" id="cc_fy_09_10" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['cc_9_10'];?>">                   </td>
				  <td width="154" align="center"><input type="text" name="cc_fy_08_09" id="cc_fy_08_09" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['cc_8_9'];?>"></td>
				  <td width="166" align="center"><input type="text" name="cc_fy_07_08" id="cc_fy_07_08" size="18" class="txt5" onBlur="float(this)" value="<?php echo $row_last['cc_7_8'];?>"></td>
				</tr>
				<tr>
					<td width="268" height="25">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
					<td colspan="3">&nbsp;</td>
				</tr>
				<tr>
					<td width="268" height="35">
					<font style="font-size: 9pt" face="Verdana" color="#000000">&nbsp; 
					13. Preventive Maintenance Mechanism &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in Place</font></td>
					<td align="center">
						<font style="font-size: 9pt" face="Verdana" color="#000000">
						<input type="radio" name="prev_main_mech_place"id="prev_main_mech_place" value="yes"<?php echo($row_last['preventive_place']=='yes')?'checked':'';?>>Yes&nbsp;
		  		  <input type="radio" name="prev_main_mech_place"id="prev_main_mech_place" value="no"<?php echo($row_last['preventive_place']=='no')?'checked':'';?>>No&nbsp;</font></td>
				</tr>
				<tr>
					<td width="268">&nbsp;</td>
					<td colspan="3">&nbsp;</td>
				</tr>
			  </table>
			</td>
		</tr>
		
		<tr>
			<td background="images/title.gif" height="20"><font color="#ffffff">&nbsp;
			</font><span style="font-weight: 700">
			<font face="Arial" style="font-size: 9pt" color="#ffffff">&nbsp;Complaint 
			Redressal Mechanism </font></span></td>
		</tr>
		<tr>
			<td>
			<table border="0" width="100%" cellpadding="0" bgcolor="#EEEEEE" cellspacing="1">
				<tr>
					<td width="44%">&nbsp;</td>
					<td width="56%">&nbsp;</td>
				</tr>
				<tr>
					<td width="44%" height="50" rowspan="2">
					<font style="font-size: 9pt" face="Verdana" color="#000000">&nbsp;&nbsp; 
					1. Existing Reporting system </font></td>
			  	  <td height="28" colspan="3">
				    <font style="font-size: 9pt" face="Arial" color="#000000">
					<?php
						$exist_report=explode(',',$row_last['existing_report']);
						$a_exit=array('By-phone','Writing','Personal-Contact','Other');
						$exist_other=array_diff($exist_report,$a_exit);
						foreach($exist_other as $key=>$val_exist)
						$other=substr($val_exist, 5);
						//$count=count($exist_report);
						//echo $exist_report[1];
						//for($i=0;$i<=$count;$i++)
						//{
						?>
			        <input type="checkbox" name="exist_report_sys[]" id="exist_report_sys[]" value="By-phone"<?php echo (in_array('By-phone',$exist_report)?'checked':'');?>>&nbsp;&nbsp;By-phone
				      <input type="checkbox" name="exist_report_sys[]" id="exist_report_sys[]" value="Writing"<?php echo (in_array('Writing',$exist_report)?'checked':'');?>>&nbsp;&nbsp;Writing
				      <input type="checkbox" name="exist_report_sys[]" id="exist_report_sys[]" value="Personal-Contact"<?php echo  (in_array('Personal-Contact',$exist_report)?'checked':'');?>>&nbsp;&nbsp;Personal-Contact
				      <input type="checkbox" name="exist_report_sys[]" id="exist_report_sys[]" value="Other"<?php echo ($other!='')?'checked':'';?> onClick="enable_text24(this.checked)">&nbsp;&nbsp;Other</font>
				      <!--<select size="1" name="exist_report_sys" id="exist_report_sys" class="txt" onChange="enable_text24(true)">
						<option selected value="0">Select</option>
						<?php 
						//foreach($exist_report as $key=>$val)
						//{
		   					//echo "<option value=$val>$val</option>";
						//}
						?>
				  		</select>-->
				      </td>
				</tr>
				<tr>
				  <td height="29" colspan="3"><font style="font-size: 8.5pt" face="Arial" color="#000000">&nbsp;If Other then specify&nbsp;&nbsp;</font>
				    <input type="text" name="report_other" id="report_other" style="font-size: 8pt; font-family: Verdana; border-style: solid; border-width: 1px" value="<?php echo  $other;?>">
                  </td>
			  </tr>
				<tr>
					<td width="44%" height="27">
					<font style="font-size: 9pt" face="Verdana" color="#000000">&nbsp;&nbsp; 
					2. Time Taken to address the complaint </font></td>
				  <td colspan="3">
						<select size="1" name="time_taken" id="time_taken" class="txt" >
						<option selected value="0">Select Day</option>
						<?php 
						foreach($time as $key=>$val)
						{
							if($row_last['time_taken']==$val)
							{
		   						echo "<option value=$val selected>$val</option>";
							}
							else
							{
								echo "<option value=$val>$val</option>";
							}
								
						}
						?>
				  		</select></td>
				</tr>
				<tr>
					<td width="44%" height="24">
					<font style="font-size: 9pt" face="Verdana" color="#000000">&nbsp;&nbsp; 
					3. Types of Complaint received (avg. per month) </font></td>
					<td width="56%">&nbsp;</td>
				</tr>
				<tr>
					<td colspan="2">
					<table border="0" width="100%" cellspacing="1" cellpadding="0">
						<tr>
							<td width="45" height="26" align="center">
									<font style="font-size: 9pt" face="Arial" color="#000000">
					<input type="checkbox" name="nonsupply_water" id="nonsupply_water" value="ON"<?php echo($row_last['complaint_1'] != '')?'checked':'';?> onClick="enable_text22(this.checked)"></font></td>
							<td width="473">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
							Non Supply of water due to power failure</font></td>
							<td width="226" align="left">
					<input type="text" name="complaint_1" id="complaint_1" size="10" value="<?php echo $row_last['complaint_1'];?>" style="font-size: 8pt; font-family: Verdana; border-style: solid; border-width: 1px" onBlur="numeric(this)">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
						  %</font></td>
						</tr>
						<tr>
							<td width="45" align="center">
									<font style="font-size: 9pt" face="Arial" color="#000000">
					<input type="checkbox" name="poor_water_quality" id="poor_water_quality" value="ON"<?php echo($row_last['complaint_2'] != '')?'checked':'';?> onClick="enable_text12(this.checked)"></font></td>
							<td>
							<font style="font-size: 9pt" face="Verdana" color="#000000">
							Poor Water Quality</font></td>
							<td width="226" align="left">
					<input type="text" name="complaint_2" id="complaint_2" size="10" value="<?php echo $row_last['complaint_2'];?>" style="font-size: 8pt; font-family: Verdana; border-style: solid; border-width: 1px" onBlur="numeric(this)">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
						  %</font></td>
						</tr>
						<tr>
							<td width="45" height="25" align="center">
									<font style="font-size: 9pt" face="Arial" color="#000000">
					<input type="checkbox" name="absence_phed" id="absence_phed" value="ON"<?php echo($row_last['complaint_3'] != '')?'checked':'';?> onClick="enable_text13(this.checked)"></font></td>
							<td>
							<font style="font-size: 9pt" face="Verdana" color="#000000">
							Absence of PHED field Staff</font></td>
							<td width="226" align="left">
					<input type="text" name="complaint_3" id="complaint_3" size="10" value="<?php echo $row_last['complaint_3'];?>" style="font-size: 8pt; font-family: Verdana; border-style: solid; border-width: 1px" onBlur="numeric(this)">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
						  %</font></td>
						</tr>
						<tr>
							<td width="45" height="27" align="center">
									<font style="font-size: 9pt" face="Arial" color="#000000">
					<input type="checkbox" name="polluted_src_water" id="polluted_src_water" value="ON"<?php echo($row_last['complaint_4'] != '')?'checked':'';?> onClick="enable_text14(this.checked)"></font></td>
							<td>
							<font style="font-size: 9pt" face="Verdana" color="#000000">
							Polluted sources of drinking water</font></td>
							<td width="226" align="left">
					<input type="text" name="complaint_4" id="complaint_4" size="10" value="<?php echo $row_last['complaint_4'];?>" style="font-size: 8pt; font-family: Verdana; border-style: solid; border-width: 1px" onBlur="numeric(this)">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
						  %</font></td>
						</tr>
						<tr>
							<td width="45" height="24" align="center">
									<font style="font-size: 9pt" face="Arial" color="#000000">
					<input type="checkbox" name="distri_water_supply" id="distri_water_supply" value="ON"<?php echo($row_last['complaint_5'] != '')?'checked':'';?> onClick="enable_text15(this.checked)"></font></td>
							<td>
							<font style="font-size: 9pt" face="Verdana" color="#000000">
							Distribution of Water supply due to poorly 
							maintained Water Supply Infrastructure</font></td>
							<td width="226" align="left">
					<input type="text" name="complaint_5" id="complaint_5" size="10" value="<?php echo $row_last['complaint_5'];?>" style="font-size: 8pt; font-family: Verdana; border-style: solid; border-width: 1px" onBlur="numeric(this)">
							<font style="font-size: 9pt" face="Verdana" color="#000000">
						  %</font></td>
						</tr>
					</table>					</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td>&nbsp;</td>
				</tr>
			</table>
			</td>
		</tr>
		<tr>
			<td background="images/title.gif" height="22"><font color="#ffffff">&nbsp;
			<span style="font-weight: 700">
			<font face="Arial" style="font-size: 9pt">Constraint / Issued 
			Faced by PHED officials</font></span></font></td>
		</tr>
		<tr>
			<td>
			<table border="0" width="750" id="table7" bgcolor="#EEEEEE" cellspacing="1" cellpadding="0">
				<tr>
					<td colspan="2">
					<span style="font-size: 4pt">&nbsp;</span></td>
				</tr>
				<tr>
					<td width="261" height="28">
					<font face="Verdana" style="font-size: 9pt" color="#000000">&nbsp; 
					Institutional</font></td>
					<td width="486">
					<font style="font-size: 9pt" face="Arial" color="#000000">
					<?php 
					$exist_inst=explode(',',$row_last['institutional']);
					?>
					<input type="checkbox" name="institutional[]" id="institutional[]" value="Procedural Delays"<?php echo  (in_array('Procedural Delays',$exist_inst)?'checked':'');?>>Procedural Delays</font></td>
				</tr>
				<tr>
					<td width="261" height="26">&nbsp;</td>
					<td width="486">
					<font style="font-size: 9pt" face="Arial" color="#000000">
					<input type="checkbox" name="institutional[]" id="institutional[]" value="Needs Streamlining of procedures"<?php echo  (in_array('Needs Streamlining of procedures',$exist_inst)?'checked':'');?>>Needs Streamlining of procedures&nbsp; </font></td>
				</tr>
				<tr>
					<td width="261" height="27">&nbsp;</td>
				  <td width="486">
				   <?php
				  $a_inst=array('Procedural Delays','Needs Streamlining of procedures');
						$exist_instutional=array_diff($exist_inst,$a_inst);
						foreach($exist_instutional as $key=>$val_inst)
						//echo $val;
						//$other=substr($val, 5);
						?>
					<font style="font-size: 9pt" face="Arial" color="#000000">
					<input type="checkbox" name="institutional[]" id="institutional[]" value=""<?php echo ($val_inst!='')?'checked':'';?> onClick="enable_text16(this.checked)">Others (Specify)&nbsp; </font>
				  <input type="text" name="institutional_other" id="institutional_other" size="31" style="font-size: 8pt; font-family: Verdana; border-style: solid; border-width: 1px" value="<?php echo $val_inst;?>"></td>
				</tr>
				<tr>
					<td width="261">&nbsp;</td>
				  <td width="486">&nbsp;</td>
				</tr>
				<tr>
					<td width="261">&nbsp;</td>
					<td width="486">&nbsp;	</td>
				</tr>
				<tr>
					<td width="261" height="26">&nbsp;
					<font style="font-size: 9pt" face="Verdana" color="#000000">
					Financial</font></td>
					<td width="486">
					<font style="font-size: 9pt" face="Arial" color="#000000">
					<?php 
					$exist_fin=explode(',',$row_last['financial']);
					$a_fin=array('Financial constraints at operational level');
						$exist_financial=array_diff($exist_fin,$a_fin);
						foreach($exist_financial as $key=>$val_fin)
					?>
					<input type="checkbox" name="financial[]" id="financial[]" value="Financial constraints at operational level"<?php echo  (in_array('Financial constraints at operational level',$exist_fin)?'checked':'');?>>Financial constraints at operational level</font></td>
				</tr>
				<tr>
					<td width="261" height="27">&nbsp;</td>
					<td width="486">
					<font style="font-size: 9pt" face="Arial" color="#000000">
					<input type="checkbox" name="financial[]" id="financial[]" value=""<?php echo  ($val_fin!='')?'checked':'';?> onClick="enable_text17(this.checked)">Others Specify)&nbsp; </font>
	<input type="text" name="financial_other" id="financial_other" size="31" style="font-size: 8pt; font-family: Verdana; border-style: solid; border-width: 1px" value="<?php echo $val_fin;?>"></td>
				</tr>
				<tr>
					<td width="261">&nbsp;</td>
				  <td width="486">&nbsp;</td>
				</tr>
				<tr>
					<td width="261">&nbsp; </td>
					<td width="486">&nbsp;</td>
				</tr>
				<tr>
					<td width="261" height="27">&nbsp;<font style="font-size: 9pt" face="Verdana" color="#000000"> 
					Operational </font></td>
					<td width="486">
					<font style="font-size: 9pt" face="Arial" color="#000000">
					<?php 
					$exist_opt=explode(',',$row_last['operational']);
					$a_opt=array('Manpower Shortage','Lack Vehicles for movement','Shortages of Spares');
						$exist_operational=array_diff($exist_opt,$a_opt);
						foreach($exist_operational as $key=>$val_opt)
					?>
					<input type="checkbox" name="operational[]" id="operational[]" value="Manpower Shortage"<?php echo  (in_array('Manpower Shortage',$exist_opt)?'checked':'');?>>Manpower Shortage</font></td>
				</tr>
				<tr>
					<td width="261" height="26">&nbsp;</td>
					<td width="486">
					<font style="font-size: 9pt" face="Arial" color="#000000">
					<input type="checkbox" name="operational[]" id="operational[]" value="Lack Vehicles for movement"<?php echo  (in_array('Lack Vehicles for movement',$exist_opt)?'checked':'');?>>Lack Vehicles for movement</font></td>
				</tr>
				<tr>
					<td width="261" height="27">&nbsp;</td>
					<td width="486">
					<font style="font-size: 9pt" face="Arial" color="#000000">
					<input type="checkbox" name="operational[]" id="operational[]" value="Shortages of Spares"<?php echo  (in_array('Shortages of Spares',$exist_opt)?'checked':'');?>>Shortages of Spares</font></td>
				</tr>
				<tr>
					<td width="261" height="30">&nbsp;</td>
					<td width="486">
					<font style="font-size: 9pt" face="Arial" color="#000000">
					<input type="checkbox" name="operational[]" id="operational[]" value=""<?php echo  ($val_opt!='')?'checked':'';?> onClick="enable_text18(this.checked)">Others (Specify)&nbsp; </font>
	<input type="text" name="operational_other" id="operational_other" size="31" style="font-size: 8pt; font-family: Verdana; border-style: solid; border-width: 1px" value="<?php echo $val_opt;?>"></td>
				</tr>
				<tr>
					<td width="261">&nbsp;</td>
				  <td width="486">&nbsp;</td>
				</tr>
				<tr>
					<td width="261">&nbsp;</td>
					<td width="486">&nbsp;</td>
				</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td>
			<p align="center">
			<input type="submit" value="Click for Continue" name="submit" style="font-size: 8pt; font-family: Verdana; border-style: solid; border-width: 1px; font-weight:bold; background:#666666; color:#FFFFFF; width:140px; height:30px">&nbsp;
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
</table>
</form>	
</div>

</body>
</html>